<template>
	<el-button @click="login">登录</el-button>
</template>

<script setup lang="ts">
import router from "@/router"

function login() {
	localStorage.setItem("token", 1)
	router.push("/home")
}
</script>

<style scoped lang="scss"></style>
